Cancelling in Linear Congruences

This note deals with two circumstances in which terms may be divided through in linear congruences without effecting the set of solutions.


Theorem

The linear congruences ax=b(modm) and cax=cb(modcm) have the same solution set in x given that c0.

Proof

x is a solution to the congruence ax=b(modm) if and only if there exists a y such that:

ax+my=b.

It is easy to then see that multiplying through by c0 has no effect on the solution set.


Theorem

The linear congruences ax=b(modm) and cax=cb(modm) have the same solution set if gcd(c,m)=1.

Proof

We will show this be showing two implications. First, if x is a solution to the equation ax=b(modm), it is necessarily a solution to cax=cb(modm).

In the opposite direction, we consider the following equivalent conditions:

cax=cb(modm)mcaxcbmc(axb)(Since gcd(m,c)=1)maxbax=b(modm)

This result can also be proven by using the existence of an inverse for c given the coprimality condition.